package com.solairen.myapplication.net

import java.lang.Exception

/**
 *
 * @Date 2024/2/27 19:37
 */
data class BaseModel<T>(
    var code: Int,
    var data: T?,
    var msg: String
)

sealed class HttpResult<out T> {
    class Success<T>(val model: T) : HttpResult<T>()
    class Failure(val reason: String?) : HttpResult<Nothing>()
    class Error(val ex: Exception) : HttpResult<Nothing>()
}